import { getRequest, postRequest } from "@/lib/axios";

// 审核规则列表
export const reviewRulesApi = (param) => {
  return postRequest("/exassistant/review/rules", param);
};
// 新增、编辑审核规则
export const reviewRulesUpdateApi = (param) => {
  return postRequest("/exassistant/review/rules/update", param);
};
// 审核组
export const reviewGroupsApi = (param) => {
  return postRequest("/exassistant/review/groups", param);
};
// 新增、编辑审核组
export const reviewGroupsUpdateApi = (param) => {
  return postRequest("/exassistant/review/groups/update", param);
};
// 审核成员
export const reviewUserApi = (param) => {
  return postRequest("/exassistant/review/user", param);
};
// 新增、编辑审核成员
export const reviewUserUpdateApi = (param) => {
  return postRequest("/exassistant/review/user/update", param);
};
// 审核历史
export const reviewHistoryApi = (param) => {
  return postRequest("/exassistant/review/history", param);
};

// 充值待审核
export const reviewRechargeOrderApi = (param, type) => {
  return postRequest("/exassistant/review/order/recharge", param, type);
};
// 充值审核
export const reviewRechargeAuditApi = (param) => {
  return postRequest("/exassistant/review/order/recharge/audit", param);
};

// 提现待审核
export const reviewWithdrawOrderApi = (param, type) => {
  return postRequest("/exassistant/review/order/withdraw", param, type);
};
// 提现审核
export const reviewWithdrawAuditApi = (param) => {
  return postRequest("/exassistant/review/order/withdraw/audit", param);
};

// 付款待审核
export const reviewPaymentOrderApi = (param, type) => {
  return postRequest("/exassistant/review/order/payment", param, type);
};
// 付款审核
export const reviewPaymentAuditApi = (param) => {
  return postRequest("/exassistant/review/order/payment/audit", param);
};
// 付款信息编辑
export const reviewPaymentEditApi = (param) => {
  return postRequest("/exassistant/review/order/payment/edit", param);
};

// 提币待审核
export const reviewWalletSendOrderApi = (param, type) => {
  return postRequest("/exassistant/review/order/walletsend", param, type);
};
// 提币待审核
export const reviewWalletSendAuditApi = (param) => {
  return postRequest("/exassistant/review/wallet/send/audit", param);
};

// 客户待审核
export const reviewCustomerOrderApi = (param) => {
  return postRequest("/exassistant/review/order/customer", param);
};
// 客户审核
export const reviewCustomerAuditApi = (param) => {
  return postRequest("/exassistant/review/order/customer/audit", param);
};

//资产明细
export const reviewCurrencyRecordsApi = (param, type) => {
  return postRequest("/exassistant/mer_assets_records_review", param, type);
};

//币种资产明细
export const reviewWalletMarginRecordsApi = (param, type) => {
  return postRequest("/exassistant/wallet/margin/record_review", param, type);
};

export const setOrderDescApi = (param) => {
  return postRequest("/exassistant/review/order/desc", param);
};

export const setOrderInvoiceApi = (param) => {
  return postRequest("/exassistant/review/order/invoice_desc", param);
};

// 充值退款
export const rechargeRefundApi = (param) => {
  return postRequest("/exassistant/review/order/recharge/refund", param);
};

// 付款退款
export const paymentRefundApi = (param) => {
  return postRequest("/exassistant/review/order/payment/refund", param);
};

// 完结付款信息
export const paymentFinishApi = (param) => {
  return getRequest("/exassistant/review/order/payment/finish", param);
};

// 完结付款信息
export const paymentToFinishApi = (param) => {
  return postRequest("/exassistant/review/order/payment/finish", param);
};
